/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package customer_cmds;


import appClientHandler.AUPBeanRemote;
import appClientHandler.AUPCustomerRemote;
import appClientHandler.LoginResult;
import appClientHandler.Output;
import commands.CartCommand;
import commands.CommandAbstractAction;
import commands.ProductCommand;
import commands.QuitCommand;
import customer_jdom.AccountJDOM;
import customer_jdom.ProductJDOM;
import entities.Cart;
import entities.Commande;
import entities.Product;
import general.OptionBase;
import general.OptionName;

import java.io.PrintStream;
import java.util.List;

/**
 *
 * eCOM - Adopte un Presta - Mars-Avril 2013
 * @author Kheira, Jef, William, Tuan-Long
 */
public class QuitConsoleCommand extends QuitCommand {
    
    private AUPBeanRemote aupCustomerRemote;

    public QuitConsoleCommand(AUPBeanRemote aupCustomerRemote) {
        this.aupCustomerRemote = aupCustomerRemote;
    }

    @Override
    protected void execute(PrintStream out, PrintStream err) {
            this.aupCustomerRemote.removeBean();
            System.exit(0);
    }
    
}
